import axios from 'axios';
import service from '../request';

const controller = "/UserRole";

function userrole(data: any) {
    return service({
        method: 'get',
        url: controller + "/UserRoles",
        params: data,

    })
}

function batch(data: any) {
    return service({
        method: 'post',
        url: controller + "/batch",
        data: data,
    })
}


export default {
    userrole,
    batch
}